﻿using System;
using System.Collections.Generic;
using System.Text;

namespace DuckGame1._0.Duck
{
    /// <summary>
    /// 所有鸭子的父类
    /// </summary>
 public   class DuckBase
    {
        /// <summary>
        /// 所有鸭子都有的行为
        /// </summary>
        /// <returns></returns>
        public string Swim()
        {
            return "我是Duck,我肯定会游泳!";
        }
       //展示效果
        public virtual string Display()
        {
            return "";
        }
        #region 个性行为
        public IFlyBehavior FlyBehavior { get; set; }
        //叫的行为
        public IQuackBehavior QuackBehavior { get; set; }


        #endregion
    }
}
